﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xfs
{
    [XfsActorMessageHandler(XfsSenceType.XfsServer)]
    public class S4C_PingActorHandler : XfsAMActorRpcHandler<TestOneActorEntity, C4S_PingActor, S4C_PingActor>
    {
        protected override XfsTask Run(TestOneActorEntity unit, C4S_PingActor message, Action<S4C_PingActor> reply)
        {
            S4C_PingActor response = new S4C_PingActor();

            response.Message = unit.mesage+",到些一游";
            response.ActorId = message.ActorId;
            response.RpcId = message.RpcId;

            reply(response);

            //Console.WriteLine(XfsTimeHelper.CurrentTime() + " " + this.GetType() + " 26. S4C_PingActorHandler-response: " + response.Message);

            return XfsTask.CompletedTask;

        }
    }
}
